package com.ceair.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 基础用户信息表
 * </p>
 *
 * @author wangbaohai
 * @since 2025-02-25
 */
@TableName(value ="oauth2_basic_user")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Oauth2BasicUser implements Serializable {

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 用户名、昵称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 账号
     */
    @TableField(value = "account")
    private String account;

    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 手机号
     */
    @TableField(value = "mobile")
    private String mobile;

    /**
     * 邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     * 头像地址
     */
    @TableField(value = "avatar_url")
    private String avatarUrl;

    /**
     * 是否已删除
     */
    @TableField(value = "deleted", fill = FieldFill.INSERT)
    private Boolean deleted;

    /**
     * 用户来源
     */
    @TableField(value = "source_from")
    private String sourceFrom;

    /**
     * 创建人id
     */
    @TableField(value = "creator_id", fill = FieldFill.INSERT)
    private Long creatorId;

    /**
     * 创建人名称
     */
    @TableField(value = "creator_name", fill = FieldFill.INSERT)
    private String creatorName;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 修改人id
     */
    @TableField(value = "modifier_id", fill = FieldFill.INSERT_UPDATE)
    private Long modifierId;

    /**
     * 修改人名称
     */
    @TableField(value = "modifier_name", fill = FieldFill.INSERT_UPDATE)
    private String modifierName;

    /**
     * 修改时间
     */
    @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime modifyTime;

    /**
     * 版本号
     */
    @TableField(value = "record_version", fill = FieldFill.INSERT)
    private Integer recordVersion;

    /**
     * 扩展字段2
     */
    @TableField(value = "attribute2")
    private String attribute2;

    /**
     * 扩展字段3
     */
    @TableField(value = "attribute3")
    private String attribute3;

    /**
     * 扩展字段4
     */
    @TableField(value = "attribute4")
    private String attribute4;

    /**
     * 扩展字段5
     */
    @TableField(value = "attribute5")
    private String attribute5;

    /**
     * 扩展字段1
     */
    @TableField(value = "attribute1")
    private String attribute1;

}